package cn.koala.key.receipt.service;

import cn.koala.key.entity.BorrowOrder;
import cn.koala.key.receipt.dto.BorrowOrderCheckDTO;
import cn.koala.key.receipt.dto.BorrowOrderDTO;
import cn.koala.key.receipt.dto.BorrowOrderSearchDTO;
import cn.seed.common.core.Result;
import cn.seed.common.core.ResultList;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @description:BorrowOrderService
 * @author 32415
 * @time 2019/04/28
 **/
public interface BorrowOrderService {

    Result submit(Long id);

    Result invalid(Long id);

    Result check(List<BorrowOrderCheckDTO> borrowOrderCheckList);

    Result<BorrowOrder> getById(Long id);

    Result createOrEdit(BorrowOrderDTO borrowOrderDTO);

    Result<ResultList<BorrowOrder>> searchBorrowOrder(BorrowOrderSearchDTO borrowOrderSearch);

    Result<List<BorrowOrder>> batchCreate(MultipartFile file, String userCode);
}
